home *** CD-ROM | disk | FTP | other *** search
/ AppleScript - The Beta Release / AppleScript - The Beta Release.iso / Example Scripts / Example Scripts (as text) / Quill Scripts / Proportional Resize next >
Encoding:
Text File  |  1992-12-02  |  359 b   |  11 lines  |  [TEXT/ToyS]

  1. display dialog ¬
  2.     "By what percentage should I increase point size?" default answer "10"
  3. if button returned of result = "ok" then
  4.     set percentage to (text returned of result) ÷ 100 + 1
  5.     
  6.     tell window 1 of application "Quill"
  7.         repeat with i from 1 to word count
  8.             set size of word i to ((size of word i) * percentage) as integer
  9.         end repeat
  10.     end tell
  11. end if